.class Lcom/donson/momark/view/view/r;
.super Ljava/lang/Thread;


# instance fields
.field final synthetic a:Lcom/donson/momark/view/view/AdView;


# direct methods
.method constructor <init>(Lcom/donson/momark/view/view/AdView;)V
    .locals 0

    iput-object p1, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    :goto_0
    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    iget-object v0, v0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-static {v0}, Lcom/donson/momark/b/a;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    iget-object v0, v0, Lcom/donson/momark/view/view/AdView;->a:Landroid/app/KeyguardManager;

    invoke-virtual {v0}, Landroid/app/KeyguardManager;->inKeyguardRestrictedInputMode()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    iget-object v0, v0, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-static {v0}, Lcom/donson/momark/a/p;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    const-string v1, " adView.InitThread request data for init."

    invoke-static {v1}, Lcom/donson/momark/util/t;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    iget-object v1, v1, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    sget-object v2, Lcom/donson/momark/util/e;->a:Ljava/lang/String;

    invoke-static {}, Lcom/donson/momark/view/view/AdView;->d()Lcom/donson/momark/a/r;

    move-result-object v3

    iget-object v4, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-static {v4}, Lcom/donson/momark/view/view/AdView;->a(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/a/u;

    move-result-object v4

    invoke-static {v1, v2, v0, v3, v4}, Lcom/donson/momark/b/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/donson/momark/a/r;Lcom/donson/momark/a/u;)V

    :cond_0
    invoke-static {}, Lcom/donson/momark/view/view/AdView;->d()Lcom/donson/momark/a/r;

    move-result-object v0

    iget-object v0, v0, Lcom/donson/momark/a/r;->d:Lcom/donson/momark/a/a/u;

    invoke-virtual {v0}, Lcom/donson/momark/a/a/u;->e()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-static {v0}, Lcom/donson/momark/view/view/AdView;->a(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/a/u;

    move-result-object v0

    invoke-virtual {v0}, Lcom/donson/momark/a/u;->d()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-static {v0}, Lcom/donson/momark/view/view/AdView;->a(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/a/u;

    move-result-object v0

    iget-object v1, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    iget-object v1, v1, Lcom/donson/momark/view/view/AdView;->context:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/donson/momark/a/u;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-static {v0}, Lcom/donson/momark/view/view/AdView;->a(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/a/u;

    move-result-object v0

    invoke-virtual {v0}, Lcom/donson/momark/a/u;->a()I

    :cond_1
    const-wide/16 v0, 0x3e8

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-static {v0}, Lcom/donson/momark/view/view/AdView;->e(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/view/view/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/donson/momark/view/view/e;->isAlive()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/donson/momark/view/view/r;->a:Lcom/donson/momark/view/view/AdView;

    invoke-static {v0}, Lcom/donson/momark/view/view/AdView;->e(Lcom/donson/momark/view/view/AdView;)Lcom/donson/momark/view/view/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/donson/momark/view/view/e;->start()V

    :cond_3
    invoke-static {}, Lcom/donson/momark/view/view/AdView;->e()Lcom/donson/momark/util/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/donson/momark/util/b/a;->isAlive()Z

    move-result v0

    if-nez v0, :cond_4

    invoke-static {}, Lcom/donson/momark/view/view/AdView;->e()Lcom/donson/momark/util/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/donson/momark/util/b/a;->start()V

    :cond_4
    return-void
.end method
